//
//  CYCourtDetailCell.m
//  CreditAddressBook
//
//  Created by LE on 15/12/11.
//  Copyright © 2015年 Lee. All rights reserved.
//

#import "CYCourtDetailCell.h"
#import "CYPromiseRecordModel.h"

@interface CYCourtDetailCell()
@property (weak, nonatomic) IBOutlet UILabel *fxLabel;
@property (weak, nonatomic) IBOutlet UILabel *sfLabel;
@property (weak, nonatomic) IBOutlet UILabel *zxwhLabel;
@property (weak, nonatomic) IBOutlet UILabel *lasjLabel;
@property (weak, nonatomic) IBOutlet UILabel *ahLabel;
@property (weak, nonatomic) IBOutlet UILabel *zxyjLabel;
@property (weak, nonatomic) IBOutlet UILabel *sxws;
@property (weak, nonatomic) IBOutlet UILabel *zxrxkLabel;
@property (weak, nonatomic) IBOutlet UILabel *zxqxLabel;
@property (weak, nonatomic) IBOutlet UILabel *fbsjLabel;
@property (weak, nonatomic) IBOutlet UIImageView *bgImageView;

@end

@implementation CYCourtDetailCell

- (void)setModel:(CYPromiseRecordModel *)model {
    self.sfLabel.text = model.areaName;
    self.ahLabel.text = model.caseCode;
    self.fxLabel.text = model.courtName;
    self.zxqxLabel.text = model.disruptTypeName;
    self.sxws.text = model.duty;
    self.zxwhLabel.text = model.gistId;
    self.zxyjLabel.text = model.gistUnit;
    self.zxrxkLabel.text = model.performance;
    self.fbsjLabel.text = model.publishDate;
    self.lasjLabel.text = model.regDate;
}

- (void)awakeFromNib {
    [self.bgImageView setImage:[UIImage resizedImageWithName:@"card_bg"]];
    self.bgImageView.layer.shadowOffset = CGSizeMake(5, 5);//设置阴影偏移
    self.bgImageView.layer.shadowOpacity = .2;//阴影透明度
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
